package com.lyj.mall.service.impl;

import com.lyj.mall.dao.RolePermissionsMapper;
import com.lyj.mall.pojo.RolePermissions;
import com.lyj.mall.service.RolePermissionsService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @author lyj
 * @date 2019/12/17 23:47
 */
@Service
public class RolePermissionsServiceImpl implements RolePermissionsService {

    @Resource
    private RolePermissionsMapper rolePermissionsMapper;

    @Override
    public int deleteByPrimaryKey(Integer id) {
        return rolePermissionsMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(RolePermissions record) {
        return rolePermissionsMapper.insert(record);
    }

    @Override
    public int insertSelective(RolePermissions record) {
        return rolePermissionsMapper.insertSelective(record);
    }

    @Override
    public RolePermissions selectByPrimaryKey(Integer id) {
        return rolePermissionsMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(RolePermissions record) {
        return rolePermissionsMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(RolePermissions record) {
        return rolePermissionsMapper.updateByPrimaryKey(record);
    }

}
